package com.sce.core.mongodb;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.repository.config.EnableMongoRepositories;

/**
 * Created by hylc on 2018/6/18.
 */
@Configuration
@ConfigurationProperties(prefix = "spring.mongodb.primary")
@EnableMongoRepositories(basePackages = "com.sce.core.mongodb",mongoTemplateRef = PrimaryMongoConfig.MONGO_TEMPLATE)
public class PrimaryMongoConfig{

    protected static final String MONGO_TEMPLATE = "primaryMongoTemplate";
}